import {
  URL_DEFAULT_PREFIXER
} from '../ajax/config'

export default {
  lang: localStorage.getItem('lang') || 'en', // 语言
  menus: [], // 菜单
  userInfo: JSON.parse(sessionStorage.getItem('loginInfo')) ? JSON.parse(sessionStorage.getItem('loginInfo')) : '', // 用户信息
  isLogin: '', // 用户登录
  vrToken: sessionStorage.getItem('vrToken') ? sessionStorage.getItem('vrToken') : '',
  uploadUrl: `${URL_DEFAULT_PREFIXER}/upload/image`,
  headers: {
    'Authorization': 'Bearer ' + sessionStorage.getItem('vrToken') || ''
  },
  saveCookies: localStorage.getItem('saveCookies') ? localStorage.getItem('saveCookies') : 'show'
}